spl: add check for FIT-header when loading image
author[email protected] <[email protected]>
Wed, 16 Nov 2016 10:54:39 +0000 (12:54 +0200)
committerTom Rini <[email protected]>
Mon, 28 Nov 2016 20:10:31 +0000 (15:10 -0500)
commitf72250e7e7e6c31bc21dc177f1ffe1dc8cc88e3f
tree93c23491468dfb0f8d5582f95f51a5b5bd7542d6
parent1deeecb6e41a42d0e24fec30d2bb74c56d7a0d9b
spl: add check for FIT-header when loading image

Add check for FDT_MAGIC, otherwise also legacy images will be loaded as
a FIT. With this check in place, the loader works correct both
with legacy and FIT images.

Signed-off-by: Tomas Melin <[email protected]>
Acked-by: Lokesh Vutla <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
common/spl/spl_spi.c